package com.example.bo;

import com.example.domain.CmsPermission;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @Author: zfm
 * @Date: 2019/11/15 14:59
 */
@Data
@Accessors(chain = true)
public class RedisUserInfo {

    /**
     * 用户id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 用户number
     */
    private String staffNumber;

    /**
     * 用户name
     */
    private String staffName;

    /**
     * 学院Name
     */
    private String collegeName;

    /**
     * token
     */
    private String token;

    /**
     * 权限列表
     */
    private List<CmsPermission> permissionList;

}
